package org.meteorshower.employee_depart.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


/**
 * 邮件发送封装类
 * */
@Data
@NoArgsConstructor
public class EmailModel implements Serializable {
    private static final long serialVersionUID = 1L;

    private Employee employee;

    private String title;

    private String content;

    private String path;

    private String toEmail;


    public EmailModel(Employee employee, String title, String content, String path) {
        this.employee = employee;
        this.title = title;
        this.content = content;
        this.path = path;
    }
    public EmailModel(Employee employee, String title, String path) {
        this.employee = employee;
        this.title = title;
        this.path = path;
    }

    public EmailModel(String title, String content, String path,String toEmail) {
        this.title = title;
        this.content = content;
        this.path = path;
        this.toEmail = toEmail;
    }

    @Override
    public String toString() {
        return "EmailModel{" +
                "employee=" + employee +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", path='" + path + '\'' +
                '}';
    }
}
